@import "functions";
@import "variables";
@import "custom";
@import "mixins";


body {
	font-family: $font-family-sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.8;
	color: lighten($black, 70%);
	background: $white;
}
a {
	transition: .3s all ease;
	text-decoration: none;
	&:hover {
		text-decoration: none;
	}
}
h1, h2, h3, h4, h5 {
	color: $black;
	font-family: $font-family-serif;
}
.btn, .form-control {
	outline: none;
	box-shadow: none!important;
	&:focus, &:active {
		outline: none;
	}
}
.form-control {
	box-shadow: none!important;
	height: 50px;
	border-width: 2px;
}
textarea.form-control {
	height: inherit;
}
.btn {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .2em;
	border-radius: 0;
	&.btn-primary {
		color: $white;
		border-width: 2px;
		&:hover, &:active, &:focus {
			border-color: lighten(theme-color('primary'), 10%); 
			background: lighten(theme-color('primary'), 10%);
		}
	}
	&.btn-sm {
		font-size: 12px;
	}
	&.btn-outline-primary {
		border-width: 2px;
		color: theme-color('primary');
		&:hover, &:focus, &:active {
			color: $white;
		}
	}
	
	&.btn-outline-white {
		border-width: 2px;
		border-color: $white;
		color: $white;
		&:hover, &:focus {
			background: $white;
			color: $black;
			border-width: 2px;
		}
	}
	&:hover {
		text-decoration: none;
	}
}


header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 5;
	
	.navbar-brand {
		text-transform: uppercase;
		letter-spacing: .2em;
		font-weight: 400;
		&.absolute {
			position: absolute;
			@include media-breakpoint-down(md) {
				position: relative;
			}
		}
		span {
			color: theme-color('primary');
		}
	}


	.navbar {
		padding-top: 0;
		padding-bottom: 0;
		background: none!important;
		position: relative;
		@include media-breakpoint-down(sm) {
			background: rgba(0,0,0,1)!important;
			padding-top: .5rem;
			padding-bottom: .5rem;
		}
		.nav-link {
			padding: 1.7rem 1rem;
			outline: none!important;
			font-size: 12px;
			text-transform: uppercase;
			letter-spacing: .2em;
			@include media-breakpoint-down(sm) {
				padding: .5rem 0rem;
			}
			&.active {
				color: $white;
			}
		}

		.dropdown-menu {
			font-size: 14px;
			border-radius: 0px;
			border: none;
			box-shadow: 0 2px 30px 0px rgba(0,0,0,.2);
			min-width: 13em;
			// position: relative;
			margin-top: -10px;

			&:before {
				bottom: 100%;
				left: 10%;
				border: solid transparent;
				content: " ";
				height: 0;
				width: 0;
				position: absolute;
				pointer-events: none;				
				border-bottom-color: #fff;
				border-width: 7px;
				@include media-breakpoint-down(md) {
					display: none;
				}
			}

			.dropdown-item {
				
				&:hover {
					background: theme-color('primary');
					color: $white;	
				}
				&.active {
					background: theme-color('primary');
					// background: gray('100');
					color: $white;
				}
			}
			a {
				padding-top: 7px;
				padding-bottom: 7px;

			}
		}
		.cta-btn {
			a {
				background: theme-color('primary');
				color: $black!important;
				padding-left: 20px!important;

				padding-right: 20px!important;
				text-transform: uppercase;
				padding-top: 26px!important;
				padding-bottom: 26px!important;
				line-height: 1;
				transition: .3s all ease;
				&:hover {
					color: $white!important;
					box-shadow: 2px 0 30px -5px rgba(theme-color('primary'), .9);
				}
			}
		}
	}
}

.site-wrap {
	transition: .3s all ease;
}
body.offcanvas-open {
	position: relative;
	overflow: hidden;
	.site-wrap {
		transform: translateX(-240px);
	}
}

.offcanvas-toggle {
	position: fixed;
	z-index: 89;
	right: 20px;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 13px;
	top: 20px;
	color: $black;
	&:hover {
		color: $black;
		opacity: .7;
	}
	&.light {
		color: $white;
		&:hover {
			color: $white;
			opacity: .7;
		}
	}
}
.offcanvas_menu {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	margin-right: -240px;
	
	overflow: scroll;
	z-index: 100;
	width: 240px;
	background: #283149;
	padding: 20px 30px;
	ul {
		margin: 0;
		padding: 0;
		li {
			margin: 0 0 10px 0;
			padding: 0;
			list-style: none;
			a {
				color: $white;
				font-size: 18px;
				&:hover {
					opacity: .5;
				}
			}
			&.active {
				a {
					color: $primary;
				}
			}
		}
		&.social {
			li {
				display: inline-block;
				a {
					color: $white;
					font-size: 20px;
					padding: 5px 10px;
					&:hover {
						opacity: .5;
					}
				}
				&:first-child {
					a {
						padding-left: 0;	
					}
				}
			}
		}
	}
}

main, aside {
	width: 100%;
	@include media-breakpoint-up(sm) {
		width: 50%;
	}
}
aside {
	background-position: center center;
	background-size: cover;
	height: 400px;
	position: relative;
	@include media-breakpoint-up(sm) {
		height: 100vh;
		position: fixed;
		right: 0;
		top: 0;
	}
}
main {
	float: left;
	padding: 7%;
	position: relative;
}

.home-button {
	
	top: 20px;
	color: $primary;
	font-size: 20px;
	position: absolute;
	@include media-breakpoint-up(sm) {
		display: block;
	}

}
.portfolio-list {
	padding: 0;
	margin: 0;
	li {
		padding: 0;
		margin: 0 0 20px 0;
		display: block;
		list-style: none;
		padding: 10px;
		border: 1px solid lighten(#ccc, 10%);
		transition: .3s all ease;
		&:hover {
			box-shadow: 0 4px 10px 0 rgba(0,0,0,.1);
		}
		a {
			display: block;
			position: relative;
			&:before {
				position: absolute;
				content: "";
				top: 0; left: 0; bottom: 0; right: 0;
				background: $primary;
				transition: .3s all ease;
				visibility: hidden;
				opacity: 0;
			}
			img {
				max-width: 100%;
			}
			.text {
				position: absolute;
				top: 50%;
				transform: translateY(-50%);
				text-align: center;
				left: 0;
				right: 0;
				opacity: 0;
				visibility: hidden;
				transition: .3s all ease;
				h3 {
					color: $white;
				}
				span {
					color: $white;
					opacity: .8;
				}
			}
			&:hover {
				&:before {
					visibility: visible;
					opacity: 1;
				}
				.text {
					opacity: 1;
					visibility: visible;
				}
			}
		}
	}
}

.resume-list {
	padding: 0;
	margin: 0;
	li {
		padding: 0;
		margin: 0 0 30px 0;
		display: block;
		list-style: none;
		.date {
			color: $black;
			opacity: .6;
		}
		h3 {
			color: $black;
			font-size: 24px;
		}
	}
}
// half
.half {
	// border-bottom: 1px solid lighten($black, 18%);
	> div {
		width: 50%;
		padding: 4% 5%;
		&.bg {
			background-size: cover;
			background-position: center center;
			&.campmeeting {
				#date-countdown {
					.countdown-block {
						font-size: 12px;
						text-transform: capitalize;
						.label {
							font-size: 30px;
							color: $white;
						}
					}
				}
				h2 {
					color: $white;
				}
			}
			@include media-breakpoint-down(md) {
			
				height: 350px;	
			}
		}
		@include media-breakpoint-down(md) {
			width: 100%;
		}
	}
}

.site-subscribe {
	background: $primary;
	padding: 2em 0;
}
.event-list-item {
	display: table;
	border-bottom: 1px solid #ccc;
	&.first {
		border-top: 1px solid #ccc;	
	}
	width: 100%;
	p, span {
		padding: 20px 10px;
	}
	span, p {
		display: table-cell;
	}
	.date {
		border-right: 1px solid #ccc;
		text-transform: uppercase;
		color: lighten($black, 70%);
	}
	.more {
		text-transform: uppercase;
		font-size: 13px;
	}
	.date, .more {
		width: 20%;
	}
	p {
		font-size: 18px;
		color: $black;
		width: 60%;
	}
}

// upcoming events 
.upcoming-events-highlight {
	border-bottom: 1px solid lighten($black, 18%);
	// float: left;
	// width: 100%;
	padding: 3em 0;
	background: lighten($black, 15%);
	.section-heading {
		background: $yellow;
		padding: 2px 15px;
		display: inline-block;
		font-size: 11px;
		color: $white;
		text-transform: uppercase;
		letter-spacing: .2em;
		margin-bottom: 15px;
	}
	h2 {
		font-size: 20px;
		font-family: $font-family-serif;
		a {
			color: $white;
		}
	}
	.events-meta {
		color: rgba($white, .5);
		font-size: 10px;
		text-transform: uppercase;
		letter-spacing: .1em;
	}

	.counter-number-item {
		background: $yellow;
		width: 100%;
		padding: 20px;
		text-align: center;
		font-size: 30px;
		font-family: $font-family-serif;
		color: $white;
		line-height: 1;
	}

}



.pastor {
	img {
		// width: 200px;
		// max-width: 100%;
		// border-radius: 50%;
	}
	.position {
		opacity: .5;
		margin-bottom: 10px;
	}
	p {
		margin-bottom: 30px;
	}
	h3 {
		font-size: 20px;
	}
}
// heading
.section-heading {
	background: $yellow;
	padding: 2px 15px;
	display: inline-block;
	font-size: 11px;
	color: $white;
	text-transform: uppercase;
	letter-spacing: .2em;
	margin-bottom: 15px;
}

// sermon
.sermon {
	
	background: $black;
	float: left;
	width: 100%;
	.sermon-text {
		padding: 20px;
		p {
			&:last-child {
				margin-bottom: 0;
			}
		}
		
	}
	h2 {
		font-size: 18px;
		a {
			color: $white;
			&:hover {
				opacity: .8;
			}
		}
	}
	.sermon-meta {
		text-transform: uppercase;
		font-size: 11px;
		letter-spacing: .1em;
		a {
			color: $white;
			&:hover {
				opacity: .8;
			}
		}
	}
}

// custom media
.custom-media {
	img {
		width: 120px;
	}
	&.d-block {
		img {
			width: inherit;
			max-width: 100%;
			margin-bottom: 20px;
		}
	}
	
	.icon {
		span {
			font-size: 70px;
			color: $primary;
		}
	}
	h3 {
		font-size:18px;	
		line-height: 1.5;
		a {
			color: $black;
			&:hover {
				opacity: .7;
			}
		}
	}
	.post-meta {
		text-transform: uppercase;
		font-size: 11px;
		letter-spacing: .1em;
		a {
			color: $black;
			&:hover {
				opacity: .8;
			}
		}
	}
}

// .blog {
// 	.media {
// 		h3 {
// 			font-size: 20px;
// 			margin-bottom: 10px;
// 		}
// 		.post-meta {
// 			font-size: 14px;
// 			letter-spacing: .2em;
// 			text-transform: uppercase;
// 		}
// 		> a {
// 			width: 40%;
// 			@include media-breakpoint-down(sm) {
// 				width: 100%;
// 				margin-bottom: 30px;
// 			}
// 		}
// 	}
// }



// Flaticon 
.custom-icon {
	font-size: 70px;
	color: theme-color('primary');
}


/* Owl Carousel */
.owl-carousel {


	.owl-item {
		opacity: .4;
		&.active {
			opacity: 1;
		}
	}
	
	.owl-nav {
		position: absolute;
		top: 50%;
		width: 100%;
		.owl-prev,
		.owl-next {
			position: absolute;
			transform: translateY(-50%);
			margin-top: -10px;
			opacity: .2;
			transition: .3s all ease;
			&:hover, &:focus, &:active {
				outline: none;
				opacity: 1;
			}
			span {
				&:before {
					font-size: 40px;
				}
			}
		}
		.owl-prev {
			
			left: 30px!important;
			// border: 1px solid red;
		}
		.owl-next {
			right: 30px!important;
		}
	}
	.owl-dots {
		text-align: center;
		.owl-dot {
			width: 10px;
			height: 10px;
			margin: 5px;
			border-radius: 50%;
			background: none;
			&.active {
				background: $white;
			}
		}
	}
	&.testimony-slider {
		.owl-item {
			margin-bottom: 30px;
			text-align: center;
			img {
				width: 120px;
				margin: 0 auto 30px auto;
				border-radius: 50%;
			}
			blockquote {
				font-size: 20px;
				color: $black;
				font-style: italic;
			}
		}
		.owl-dots {
			text-align: center;
			.owl-dot {
				width: 10px;
				height: 10px;
				margin: 5px;
				border-radius: 50%;
				background: lighten($black, 80%);
				&.active {
					background: $black;
				}
				&:focus, &:active {
					outline: none;
				}
			}
		}

	}

	// big slider
	&.home-slider {
		z-index: 1;
		position: relative;
		.btn-link {
			color: $white;
		}
		.owl-nav {
			opacity: 0;
			visibility: hidden;
			transition: .3s all ease;
			button {
				color: $white;
			}
		}
		&:focus, &:hover {
			.owl-nav {
				opacity: 1;
				visibility: visible;
			}
		}

		.slider-item {
			background-size: cover;
			background-repeat: no-repeat;
			background-position: center center;
			height: calc(100vh - 217px);
			min-height: 700px;	
			position: relative;
			&:before {
				position: absolute;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background: rgba(0,0,0,.2);
				content: "";
			}
			.slider-text {
				color: $white;
				height: calc(100vh - 217px);
				min-height: 700px;
				.child-name {
					font-size: 40px;
					color: $white;
				}
				h1 {
					font-size: 40px;
					color: $white;
					line-height: 1.2;
					font-weight: 300!important;
					@include media-breakpoint-down(md) {
						font-size: 40px;
					}
				}
				p {
					font-size: 20px;
					line-height: 1.5;
					font-weight: 300;
					color: rgba(255,255,255,1);
				}
			}
			
		}
		&.inner-page {
			.slider-item {
				height: calc(50vh - 117px);
				min-height: 550px;	
				.slider-text {
					color: $white;
					height: calc(50vh - 117px);
					min-height: 550px;
				}
			}
		}
		.owl-dots {
			position: absolute;
			bottom: 100px;
			width: 100%;

			.owl-dot {
				width: 10px;
				height: 10px;
				margin: 5px;
				border-radius: 50%;
				border: 2px solid rgba(255,255,255,.5);
				outline: none!important;
				position: relative;
				transition: .3s all ease;
				&.active {
					border: 2px solid rgba(255,255,255,1);
					span {	
						background: rgba(255,255,255,1);
					}	
				}
			}

		}
	}
	&.major-caousel {
		.owl-stage-outer {
			padding-top: 30px;
			padding-bottom: 30px;
		}
		.owl-nav {
			.owl-prev, .owl-next {
				transition: .3s all ease;
				color: gray('700');
				&:hover, &:focus {
					color: gray('600');
					outline: none;
				}
				&.disabled {
					color: gray('300');
				}
			}
			.owl-prev {
				left: -60px!important;
			}
			.owl-next {
				right: -60px!important;
			}
		}
		.owl-dots {
			bottom: -30px!important;
			position: relative;
		}
	}
}
.owl-custom-nav {
	float: right;
	position: relative;
	z-index: 10;
	.owl-custom-prev,
	.owl-custom-next {
		padding: 10px;
		font-size: 30px;
		background: #ccc;
		line-height: 0;
		width: 60px;
		text-align: center;
		display: inline-block;
	}
} 


// Section
.section {
	padding: 7em 0;
}
.section-subscribe {
	padding: 2em 0;	
}

.contact-form-contact-info {
	p {
		margin-bottom: 30px;
		font-size: 20px;
		line-height: 1.5;
		color: $black;
		.icon {
			top: -4px;
			position: relative;
			width: 0px;
			font-size: 30px;
			color: $primary;
		}
	}
}

.load-more {
	display: block;
	padding: 40px;
	text-align: center;
	background: gray('200');
	color: $black;
	font-size: 20px;
	&:hover {
		background: $primary;
		color: $white;
	}
}


.cover_1 {
	background-size: cover;
	background-position: center center;
	padding: 7em 0;
	.sub-heading {
		color: rgba(255,255,255,.7);
		font-size: 22px;
	}
	.heading {
		font-size: 50px;
		color: rgba(255,255,255,1);
		font-weight: 300;
	}
}
.heading {
	color: $black;
	&.border-bottom {
		position: relative;
		padding-bottom: 30px;
		&:before {
			bottom: 0;
			position: absolute;
			content: "";
			width: 50px;
			height: 2px;
			left: 50%;
			transform: translateX(-50%);
			background: theme-color('primary');
		}
	}
}
.text-black {
	color: $black!important;
}
// Stretch
.stretch-section {
	.video {
		display: block;
		position: relative;
		box-shadow: 4px 4px 70px -20px rgba(0,0,0,.5);
	}
}

.media-feature {
	padding:30px;
	transition: .2s all ease-out;
	background: $white;
	z-index: 1;
	position: relative;
	border-bottom: 10px solid transparent;
	border-radius: 4px;
	font-size: 15px;
	.icon {
		font-size: 60px;
		color: theme-color('primary');
	}
	h3 {
		font-size: 16px;
		text-transform: uppercase;
	}
	&:hover, &:focus {
		box-shadow: 0 2px 20px -3px rgba(0,0,0,.1);
		transform: scale(1.05);
		z-index: 2;
		border-bottom: 10px solid theme-color('primary');
	}
}

.media-custom {
	background: $white;
	transition: .3s all ease;
	margin-bottom: 30px;
	position: relative;
	top: 0;
	.meta-post {
		color: gray('400');
		font-size: 13px;
		text-transform: uppercase;
	}
	> a {
		position: relative;
		overflow: hidden;
		display: block;
	}
	.meta-chat {
		color: gray('400');
		&:hover {
			color: gray('600');
		}
	}
	img {
		transition: .3s all ease;
	}
	&:focus, &:hover {
		img {
			transform: scale(1.1);
		}
	}
	.media-body {
		padding: 30px;
		h3 {
			font-size: 20px;
		}
		p {
			&:last-child {
				margin-bottom: 0;
			}
		}
	}
}


.media-testimonial {
	img {
		width: 100px;
		border-radius: 50%;
	}
	blockquote {
		p {
			font-size: 20px;
			color: $black;
			font-style: italic;
		}
	}
}

// list style
.list-unstyled {
	&.check {
		li {
			position: relative;
			padding-left: 30px;
			line-height: 1.3;
			margin-bottom: 10px;
			&:before {
				color: color('cyan');
				left: 0;
				font-family: "Ionicons"; 
				content: "\f122";
				position: absolute;
			}
		}
	}
}



// Modal
#modalAppointment {
	.modal-content {
		border-radius: 0;
		border: none;
	}
	.modal-body, .modal-footer {
		padding: 40px;
	}
}

// Footer
.site-footer {
	border-top: 1px solid lighten($black, 18%);
	padding: 5em 0;
	background: lighten($black, 15%);
	
	font-size: 13px;
	color: rgba(255,255,255,.5);
	p {
		&:last-child {
			margin-bottom: 0;
		}
	}
	
	a {
		color: theme-color('primary');
		border-bottom: 1px solid transparent;
		&:hover {
			color: $white;
			border-bottom: 1px solid rgba(255,255,255,.2);
		}
	}
	h3 {
		font-size: 16px;
		margin-bottom: 20px;
		// text-transform: uppercase;
		// letter-spacing: .05em;
		font-weight: bold;
		color: $white;
	}
	.footer-link {
		li {
			line-height: 1.5;
			margin-bottom: 15px;
		}
	}
	hr {
		width: 100%;
	}

}
.footer-social {
	a {
		line-height: 0;
		border-radius: 50%;
		margin: 0 5px 5px 0;
		border: 1px solid rgba(255,255,255,.1);
		width: 30px;
		height: 30px;
		text-align: center;
		display: inline-block;
		&:hover {
			background: $white;
			border-color: $white;
			color: $black;
		}
	}
}

.link-thumbnail {
	display: block;
	position: relative;
	overflow: hidden;
	text-align: center;
	@include media-breakpoint-down(md) {
		margin-bottom: 30px;	
	}

	img {
		position: relative;
		transition: .3s all ease;
	}
	.date {
		display: block;
		font-size: 12px;
		color: rgba(255,255,255,.4);
		text-transform: uppercase;
		margin-bottom: 10px;
	}
	.icon {
		position: absolute;
		transition: .3s all ease;
		z-index: 4;
		top: 50%;
		font-size: 30px;
		color: $white;
		left: 50%;
		transform: translate(-50%, -50%);
		opacity: 0;
		visibility: hidden;
		margin-top: 30px;
	}
	h3 {
		opacity: 0;
		visibility: hidden;
		position: absolute;
		bottom: -20px;
		left: 0;
		color: $white;
		font-size: 18px;
		transition: .5s all ease;
		z-index: 10;
		left: 50%;
		display: block;;
		width: 77%;
		transform: translateX(-50%);
	}
	&:before {
		opacity: 0;
		visibility: hidden;
		z-index: 2;
		transition: .3s all ease;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		content: "";
		background: rgba(0,0,0,.6);
		position: absolute;

	}
	&:hover {
		h3 {
			opacity: 1;
			visibility: visible;
			bottom: 30px;
		}
		img {
			transform: scale(1.1);
		}
		.icon {
			opacity: 1;
			visibility: visible;
			margin-top: 0px;
		}
		&:before {
			opacity: 1;
			visibility: visible;
			
		}
	}
}


.border-t {
	border-top: 1px solid gray('100');
}

.copyright {
	font-size: 14px;
}

// animate
.element-animate {
	opacity: 0;
	visibility: hidden;
}

// loader

#loader {
	position: fixed;
	width:  96px;
	height: 96px;
	left:  50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(255,255,255,0.9);
	box-shadow: 0px 24px 64px rgba(0,0,0,0.24);
	border-radius:16px;
	opacity: 0; 
	visibility: hidden;
	transition: opacity .2s ease-out, visibility 0s linear .2s;
	z-index:1000;
}

#loader.fullscreen {
	padding:  0;
	left:  0;
	top:  0;
	width:  100%;
	height: 100%;
	transform: none;
	background-color: #fff;
	border-radius: 0;
	box-shadow: none;
}

#loader.show {
	transition: opacity .4s ease-out, visibility 0s linear 0s;
	visibility: visible;
	opacity: 1;
}

#loader .circular {
  animation: loader-rotate 2s linear infinite;
  position: absolute;
  left:  calc(50% - 24px);
  top:  calc(50% - 24px);
  display: block;
  transform: rotate(0deg);
}

#loader .path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: loader-dash 1.5s ease-in-out infinite;
  stroke-linecap: round;
}

@keyframes loader-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -136px;
  }
}